package cn.xttc.edu.service.impl;

import cn.xttc.edu.entity.Car;
import cn.xttc.edu.entity.vo.CarVo;
import cn.xttc.edu.mapper.CarMapper;
import cn.xttc.edu.service.CarService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 杨磊
 * @since 2022-03-09
 */
@Service
public class CarServiceImpl extends ServiceImpl<CarMapper, Car> implements CarService {

    @Autowired
    private CarMapper carMapper;

    @Override
    public IPage<CarVo> pageGetAllByCondition(Page<CarVo> page, String search) {
        return carMapper.pageGetAllByCondition(page, search);
    }
}
